package com.code.AZPlan.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 钱包账单业务对象
 *
 * @author tangyifei
 * @since 2020年1月5日12:30:05
 */
@ApiModel("钱包账单业务对象")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WalletBillBO implements Serializable{

    private static final long serialVersionUID = -4378672731772513316L;

    @ApiModelProperty(value = "金额", example = "1")
    private String amount;

    @ApiModelProperty(value = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    @ApiModelProperty(value = "交易状态 0: init, 1: online(not in block), 2: pending(in block but not confirmed), 3: done 4. failed", example = "1")
    private Integer tranStatus;

    @ApiModelProperty(value = "种类 1充值 2提币 3转入 4转出 5站内转入 6站内转出", example = "1")
    private Integer category;
}
